﻿using System.Collections.Generic;

namespace VisionCloud.Domain.DtoModel.Inner
{
    /// <summary>
    /// 数据中台返回类
    /// </summary>
    public class ProjectDCRspDto<T> where T : ProjectDCRspDataBaseDto
    {
        /// <summary>
        /// 返回码 0 为成功，其它为失败
        /// </summary>
        public int Code { set; get; }

        /// <summary>
        /// 返回信息
        /// </summary>
        public string Message { set; get; }

        /// <summary>
        /// 是否请求成功
        /// </summary>
        public bool Success { set; get; }

        /// <summary>
        /// 结果数据
        /// </summary>
        public T Data { set; get; }
    }

    public class ProjectDCListRspDto<T> where T : ProjectDCRspDataBaseDto
    {
        /// <summary>
        /// 返回码 0 为成功，其它为失败
        /// </summary>
        public int Code { set; get; }

        /// <summary>
        /// 返回信息
        /// </summary>
        public string Message { set; get; }

        /// <summary>
        /// 是否请求成功
        /// </summary>
        public bool Success { set; get; }

        /// <summary>
        /// 结果数据集
        /// </summary>
        public List<T> Data { set; get; }
    }
}